package com.example.eeuse.mysql.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.eeuse.mysql.model.User;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;


@Repository



@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     *根据 id 查询用户信息为map集合
     */

    Map<String,Object> selectMapById(Long id);

    Long getCount(Long entity);

    /**
     * 支持分页的dto条件查询
     * @param page
     *
     * @return
     */

    IPage<User> selectPageVo(@Param("page") int page, @Param("state") Integer state);


//    IPage<User> selectPageVo(int page, Integer state);
//
//    List<User> selectPageVo(Page<User> page);

}
